home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / zines / hir / hir3 Folder.sit / hir3 Folder / HIR3-7.TXT < prev    next >
Text File  |  1997-12-29  |  10KB  |  173 lines

  1. =-_.-=-._.- H A C K E R S   I N F O R M A T I O N   R E P O R T -._.-=-._.-=
  2.  
  3.     
  4.                   Windows telnet daemon (WinTD)
  5.                                by: Axon
  6.  
  7.  
  8.  
  9. ...a word, before i continue...
  10.  
  11.       This is the first article I'm writing on my new palmtop (yes, that's 
  12. right...i did it.)  After toying around with Asmodian X's Compaq PC 
  13. Companion for hours, never finding an end to the intrigue, i gave in, 
  14. needing at least a part-time replacement for my laptop.  I went with a 
  15. Hewlett-Packard 300LX, which still uses the Hitachi SH3 processor and 2 
  16. megs of ram like the Compaq, but sacrifices a backlight.  We'll see how 
  17. it goes.  I'm sort of using this text file as a test to see how 
  18. fast/accurate my typing is on this keyboard, and to see how long i can go 
  19. at it before going crazy...
  20.  
  21. ...on with the show...
  22.  
  23.     Windows telnet daemon, known as WinTD, usually, is a great 
  24. crippleware program out there, and i've found nothing else of its breed 
  25. ever since.  Most of you, just by the name, should be getting a picture 
  26. in your minds..."allows you to TELNET" into a windows machine?!?!?"  
  27. Certainly... So what would windows look like if you telnetted in?  As it 
  28. would come to be, it looks a tad like unix.  It uses some popular unix 
  29. commands for navigation, and other tasks.  It's kind of like getting a 
  30. UNIX $ prompt, and using unix commands to navigate a DOS filesystem.  
  31. Here are a few commands and their purposes.  I do not have them all 
  32. memorized, but i know most of them that WinTD recognizes.
  33.  
  34.  
  35.  
  36. ls    list system (dir in DOS)
  37. ps    process.  Lists all proceses, along with their process id (PID)
  38. cd    change directory.  Lots like DOS/UNIX cd.  to change drives, use cd x:
  39. rm    remove file (delete/del)
  40. kill    kills a task running on the host.  Each task is killed by killing the
  41.     pid number you got using ps
  42. who    shows who all is logged on, what tty, and the PID of their shell
  43. set    allows certain variables to be set.
  44. man    displays user manual entries for commands (i'll get to this later)
  45. suue    encrypts any file with uuencode and pumps it to the terminal (this is
  46.     great for downloading files, hopefully small ones, from the host.)
  47. ruue    starts expecting a uuencoded file to be sent over the terminal to the
  48.     host.  Usually one can use copy/paste to upload uuencoded files.  I
  49.     will explain this is greater detail later
  50. mkdir    make a directory.
  51. rmdir    remove a directory.
  52. exit    quits the session
  53. exec    Executes a dos command, and places the output to your terminal. (this 
  54.     part has BIG problems, but I'll talk about them in a sec)
  55. Winexec  this command executes any command on th host, and displays it on
  56.     host's monitor.  It is very powerful, so only root, and maybe 1 or 2
  57.     VERY trusted users should have access to it.  I'll discuss it at the 
  58.     same time i discuss exec.
  59. passwd    gee.  i wonder.  Change yer password maybe?
  60.  
  61. That's about the only ones I ever use, but i know there's more.  Some of
  62. the commands don't even look like normal unix commands.  Now for the bad
  63. news: if you recall, i said it's a crippleware program.  You can use it all
  64. you want without having an obligation to pay, but in order to get the user 
  65. manual pages that tell what each command does, and the syntax for them, you
  66. get to pay some ungodly amount of money (less than $100 but if it's more
  67. than 5, it'll probably wipe me out).  No, i don't know of anyone who has the
  68. man pages available for download, but if you ever find 'em, e-mail a gzip or
  69. PKzip of 'em, you'll be a lifesaver.
  70.  
  71. *--Most of you are probably fearing that this article will be like most of
  72. the articles about programs that you might see in some good old 80's e-mag,
  73. or even 2600.  The fact is, most writers just assume that readers can find
  74. stuff (actually, many writers for 2600 will tell you where to get certain
  75. things, but some of the newer writers don't...i know it's not Emannuel's
  76. fault).  Dob't worry, at the end, i'll tell ya where to get it.--*
  77.  
  78. So what does WinTD allow you to do?  Well, first off, you have to download
  79. it and configure it.  You can set what port it services, What the log-on
  80. message is, customize the prompt, and all sorts of other things.  Then you
  81. have to add users and define permissions.  "permissions" isn't exactly like
  82. unix.  You can just define what commands each user is allowed to execute.
  83. There is a list of all the available commands, and you just highlight the 
  84. ones you want (click on them while holding the ctrl key), then add the
  85. commands to the user's box.  If you want to make an account for ourself or
  86. a buddy of yours, and dont want it restricted in access, but don't feel
  87. like highlighting all the commands, there is a checkbox saying "root".  So
  88. all root is, is someone who can execute all commands.
  89.  
  90. Now, to answer your question: Why would anyone really want to telnet into
  91. a windows machine?  I've found that Wintd is somewhat secure.  I've been
  92. messing with it for over a year and still never really ben able to hack it
  93. the outside.  One thing it does that i do not particularly care for is that
  94. if you enter an invalid login name, you'll know it's invalid, because it
  95. just asks for a login again, instead of asking for a password.  Possible 
  96. uses for logging into your own computer remotely would be to download
  97. homework, cool programs, or something else.  While I've tested the uue send
  98. and receive features, i'll say they are slow.  I would recommend using 
  99. WinTD to launch an FTP daemon (which are typically insecure anyways), then
  100. ftping your files down, and killing off the FTP daemon with ps and kill.
  101.  
  102. You can also see what's going on on your computer this way, with ps.  Kill
  103. your screen saver's process, and your screen saver goes away just as if
  104. someone was messing with the mouse.  With some other commands, you could
  105. even start the calculator, netscape, a word processor, or whatnot, on your
  106. computer running WinTD, and kill them off if you wish. 
  107.  
  108. Time to tell you something cool...WinTD has a cool little feature which 
  109. allows you to hide it.  No one will know it's running unless they pull up
  110. the task manager or hit ctrl/alt/delete. Furthermore, it has the option of
  111. hiding itself upon startup, making it perfect for stealthily keeping an eye
  112. on someone else's system that's hooked up.  Granted, this works a lot
  113. better on a system what has static IP, like library computers hooked up to
  114. the internet, or computer lab systems... Ever downloaded someone's C++
  115. project right from under their nose?  =]  The imagination is the only limit
  116. on this one. 
  117.  
  118. So how about exec & winexec?  Earlier i mentioned some problems with exec.
  119. It does have problems.  It will execute any dos command, and when it is
  120. done running, display the output to you.  That's it.  No more.  This means
  121. you really should run only things such as chkdsk (to show you some stats
  122. on the host hard drive), Attrib, dir, and a few others that don't require
  123. any input before relenquishin control back to the command interpreter.  If
  124. you are a bonehead and forget ths "feature", you may be able to hit ctrl-c
  125. but sometimes that doesn't even work.  About the only thing you can do then
  126. is to open another telnet session to it, and, if you didn't crash WinTD,
  127. log-in and kill the process off that you ried to run, kill the process of
  128. your other session, and hope the daemon stays stable.  WinTD is not very
  129. predictable when the exec command is brought in.  I would recommend
  130. reserving it for root only, or else other accounts could D-o-S (denial of
  131. service) ya.
  132.  
  133. Winexec, however, has a lot more respect from me.  With it, you can, on 
  134. the host computer, execute anything it has on its system (and by the way,
  135. windows programs still accept cmmand line arguments.  Remember that.) 
  136. simply seeing calc.exe in the directory you're in doesn't mean you can
  137. type "calc" or "calc.exe" and it will run.  You must type "winexec calc"
  138. or if it's a batch file or .com file, you need to include the extension as
  139. well.
  140.  
  141. As far as file transfers with suue/ruue, i don't ecommend it unless it's
  142. in a pinch, and it' a small file.  It works best if you have a good telnet
  143. client like NetTerm or TeraTerm that supports an ASCII upload feature.
  144. (i like teraterm 'cuz it installs onto a 1.44MB floppi without complaining 
  145. about it).  All you need to do to send a file is run it through a uuencoder
  146. and do an ascii upload of the uuencoded file.  Downloading is fun.  You
  147. must start logging the session to a file before telling WinTD to start 
  148. sending the uuencoded stream. Then you have to edit the top and bottom of
  149. the log file to get rid of the stuff you typed and the $ prompt at the end
  150. of the file and THEN run it through a uudecoder.  Fun stuff.  Avoid it
  151. whenever possible.  These are two commands i would also not trust the
  152. normal user with.
  153.  
  154.  
  155. ...now for the good stuff...
  156. WinTD is released by Snappy Software (No affiliations with Play, inc, the
  157. makers of the snappy! video capture kit for the computer) I can't for the
  158. life of me remember what the heck the URL is to their page, but i do
  159. recall that i found WinTD on tucows.  Tucows is a great page for anyone
  160. that wants every single internet related utility for windows 3.1/95/NT.
  161. go to  http://www.tucows.com  and choose any of the primary affiliates and
  162. regular updaters (they'll have TWO check marks by them)  I always use the
  163. first california site with 2 check marks next to it.  When you arrive at 
  164. that site, you must chose Windows 95.  Then it gives you a huge table of
  165. TYPES of programs.  Look under Server Daemons, and it will be somewhere in
  166. there.  If it is npt, go back a page or two till you see a search textbox,
  167. and just search for WinTD that way.  You'll find it.
  168.  
  169. Well, that about cover it for WinTD.  I'm hoping that this month-delayed
  170. issue of HiR doesn't tick too many people off, and i figured we'd better
  171. have quite a few more articles if wwe were going to be late.  Use your
  172. imaginations with it...and happy/safe hackin'!
  173.